//
//  EPMLoginManager.h
//  myXianfeng
//
//  Created by 马继鵬 on 17/4/26.
//  Copyright © 2017年 EPM. All rights reserved.
//

#import <Foundation/Foundation.h>

#define _LoginMgr ([EPMLoginManager sheardManger])

#define KisLogin @"KisLogin"
#define KPhoneNum @"KPhoneNum"

@interface EPMLoginManager : NSObject
///登录状态
@property (assign,nonatomic) BOOL isLogin;
///电话号码
@property (copy,nonatomic) NSString* phoneNum;
///
@property (copy,nonatomic)  NSString* addresLabel;

/**
 单例

 @return 返回登录管理单例
 */
+ (instancetype)sheardManger;

/**
 获取验证字符串

 @param phoneNum 电话号
 @param reasult 获取验证结果
 */
- (void)getVerifyWithPhoneNum:(NSString*)phoneNum reasult:(void(^)(NSError* error)) reasult;
/**
 对验证消息发送进行包装

 @param phoneNum 手机号字符串
 @param verify 验证码字符串
 @param reasult 验证结果
 */
- (void)loginWithPhone:(NSString*)phoneNum verify:(NSString*)verify finished:(void(^)(SMSSDKUserInfo *userInfo, NSError *error))reasult;


@end
